package top.rainf.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.rainf.domain.vo.BoardMessage;

import java.util.List;

/**
 * @author 星环
 * @date 2023/5/10 16:01:18
 * @description
 */
@Mapper
public interface BoardMessageMapper {
    List<BoardMessage> selectAll();

    BoardMessage selectByIdFull(int id);

    void addOneReadCountById(int id);

    BoardMessage selectPrevOneIdAndTitleById(int id);

    BoardMessage selectNextOneIdAndTitleById(int id);

    List<BoardMessage> selectRecentN(int num);

    List<BoardMessage> selectPage(@Param("from") int from,@Param("numPerPage") int numPerPage);

    int selectRecordCount();
}
